#pragma once

#include "CFrame.h"
#include <windows.h>
using namespace std;
#include <string>
using std::string;
#include <vector>

class CAnimation
{
private:
	string m_szName;
	vector<CFrame*> m_vFrames;
	int m_nImageID;
	int m_nTotalFrames;
	bool m_bIsLooping;

public:


	CAnimation(void);
	~CAnimation(void);
	void AddFrame(CFrame* Frame);
	void DeleteFrames();

	int GetImageID() {return m_nImageID;}
	bool GetLooping() {return m_bIsLooping;}
	string GetTag() {return m_szName;}
	int GetTotalFrame() {return m_nTotalFrames;}
	CFrame* GetCurFrame(int CurFrame) { return m_vFrames[CurFrame];}


	void SetImageID(int nID) {m_nImageID = nID;}
	void SetLooping(bool bIsLooping) {m_bIsLooping = bIsLooping;}
	void SetTag(string szTag) {m_szName = szTag;}
	void SetTotalFrame(int nTotalFrames) {m_nTotalFrames = nTotalFrames;}
};
